#ifndef FS_DEV_H
#define FS_DEV_H

#include "main.h"
#include "settings.h"
#include "structs.h"
#include "fs.h"
#include "panic.h"
#include "input.h"

struct dev_struct {
	char path[128];
	int filelen;
	int handle;
	struct dev_struct *next;
};

/* Hier keine Erklärung der Funktionen,
 * sollten aber ziehmlich selbst erklärend sein
 */

int dev_add_handle (struct dev_struct *);
void dev_del_handle (int);
struct dev_struct *dev_get_handle (int);
BOOL dev_init (char);
BOOL dev_deinit ();
FILE *dev_open (const char *, struct fs_entry *, const char *);
size_t dev_read (FILE *, char *, size_t);
size_t dev_write (FILE *, void *, size_t);
int dev_close (FILE *);

#endif
